logical instructions solved problems